package com.jellyfishumbrella.GL;

import java.util.ArrayList;

public abstract class AbstractOctreeFiller {
	// private static long nextSerialID = 0;
	// private long serialID = nextSerialID++;
	private static long				nextIndex	= 0;
	private long					index		= nextIndex++;
	public ArrayList<Vertex>		verts		= new ArrayList<Vertex>();
	public ArrayList<OctreeNode>	octreeNode	= new ArrayList<OctreeNode>();
	public long getIndex() {
		return index;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (index ^ (index >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AbstractOctreeFiller other = (AbstractOctreeFiller) obj;
		if (index != other.index)
			return false;
		return true;
	}

}
